import http from '../request'

// 2、定义登录函数接口
export const findPage = (page,limit) => {
    return http({
        url: `/admin/product/baseTrademark/${page}/${limit}`,
        method: 'get'
    })
};

export const save = (pojo) => {
    return http({
        url: `/admin/product/baseTrademark/save`,
        method: 'post',
        data: pojo
    })
};

export const update = (pojo) => {
    return http({
        url: `/admin/product/baseTrademark/update`,
        method: 'put',
        data: pojo
    })
};

export const deleteById = (id) => {
    return http({
        url: `/admin/product/baseTrademark/remove/${id}`,
        method: 'delete'
    })
};

export const getById = (id) => {
    return http({
        url: `/admin/product/baseTrademark/get/${id}`,
        method: 'get'
    })
};